package ids;

import util.SSIDException;

public enum SensorCharacteristics {
	EFFICIENCY, DEPLOYMENTCOST, MONITORINGCOST;

	public static SensorCharacteristics getCharacteristic(String str)
			throws SSIDException {
		if (str.equals("$efficiency"))
			return SensorCharacteristics.EFFICIENCY;
		else if (str.equals("$deploymentcost"))
			return SensorCharacteristics.DEPLOYMENTCOST;
		else if (str.equals("$monitoringcost"))
			return SensorCharacteristics.MONITORINGCOST;
		else
			throw new SSIDException("Error: unknown sensor characteristics.");
	}
}
